﻿
using AutoMapper;
using BCCommon;
using BCCommon.Enums;
using BCDto.Trading.SaleShoppingCart;
using BCEntity.Trading.SaleShoppingCart;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.MapperProfiles.Trading.SaleShoppingCart
{
    public class SaleShoppingCartProfile : Profile
    {
        public SaleShoppingCartProfile()
        {

            //销售购物车
            CreateMap<SaleShoppingCartDto, SaleShoppingCartEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleShoppingCartRequestDto, SaleShoppingCartPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleShoppingCartRequestDto, SaleShoppingCartEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleShoppingCartPutDto, SaleShoppingCartEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SaleShoppingCartEntity, SaleShoppingCartDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}